package com.bjpowernode.boss.mvc.models.pages;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


public class PageInfo {
    private long current;
    private long totalPage;

    public PageInfo() {
        this.current = 1L;
        this.totalPage = 1L;
    }

    public PageInfo(long current, long totalPage) {
        this.current = current;
        this.totalPage = totalPage == 0 ? 1 : totalPage;
    }

    public long getCurrent() {
        return current;
    }

    public long getTotalPage() {
        return totalPage;
    }
}
